﻿using Furion.DatabaseAccessor;
using System;
using System.ComponentModel.DataAnnotations;

namespace Pear.Core
{
    /// <summary>
    /// 友链
    /// </summary>
    public class FriendLink : Entity<int>
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public FriendLink()
        {
            CreatedTime = DateTime.Now;
            IsDeleted = false;
        }
        /// <summary>
        /// 友链名称
        /// </summary>
        [Required, MaxLength(64)]
        public string SiteName { get; set; }

        /// <summary>
        /// 友链说明
        /// </summary>
        [Required, MaxLength(200)]
        public string SiteDesc { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int Sort { get; set; } = 0;

        /// <summary>
        /// 状态（这里应该改成枚举，但是状态还没定暂时没用，用于后面扩展）
        /// </summary>
        public bool Status { get; set; } = true;

        /// <summary>
        /// 友链地址
        /// </summary>
        [MaxLength(256)]
        public string WebSite { get; set; }
    }
}